package com.sinopec.basemodule.model.login_model

data class UserInfo(
    //用户账号
    var userAccount: String? = null,
    //用户id
    var userId: String? = null,
    //用户名
    var userName: String? = null,
    //仓库id
    var stockWarehouseId: String? = null,
    //仓库名称
    var stockWarehouseName: String? = null,
    //仓库类型 1平台仓库，2客户收获地址，3供应商收获地址
    var stockWarehouseType: String? = null,
    //1 按单分拣 2 非按单分拣
    var stockWarehouseSortOrder: String? = null,
    //设备id
    var deviceId: String? = null,
) {
    //是否是供应商
    fun isSupplier(): Boolean {
        return "3" == stockWarehouseType
    }

    //是否按单分拣
    fun isSortOrder(): Boolean {
        return "1" == stockWarehouseSortOrder
    }
}